﻿@using GBFinance.Web.Models;
@using HiLand.Utility.Entity
@using HiLand.Utility4.MVC.Data;
@using HiLand.Utility.Misc;
@model BrokerEntity
@{
    ViewBag.Title = "Brokder Information";
    string brokerGuid = Model.UserGuid.ToString();
}
<h2>
    Brokder Information</h2>
<div id="outterFormContainer">
</div>
<p>
    <input class="button" type="button" id="btnSave" value="Save" />
</p>

<script type="text/javascript">
    $(document).ready(function () {
        $("#aSettingSection").addClass("current");
        $("#aBrokerInformation").addClass("current");
        var targetUrl = $.UrlUtil('@Url.Action("_BrokerInformation")').concat("brokerGuid", "@brokerGuid").show(true);
        $("#outterFormContainer").load(targetUrl);
        $("#btnSave").click(function () {
            var temp = $.UrlUtil('@Url.Action("OperateResult", "Main")').concat("isSuccessful", "true").concat("message", "broker message modifed successfully").show(true);
            submitAndRedirect("#outterFormContainer form", temp);
        });
    });
</script>
